<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>


</head>
<body>
<div style="text-align: center">
    <a th:href="@{/users/form}">创建用户</a>
</div>
<table border="1" style="margin: auto" >
    <h3 style="text-align: center">用户信息展示</h3>
    <thead>

    <tr>
        <td>用户名称</td>
        <td>密码</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${listUser.size()} eq 0">
        <td colspan="3">没有用户信息！</td>
    </tr>
    <tr th:each="users : ${listUser}">
        <td th:text="${users.name}"></td>
        <td th:text="${users.password}"></td>

        <td >
            <a th:href="@{/deleteUser(id=${users.id})}">删除</a>
            <a th:href="@{'/toUser'}">修改</a>
        </td>
    </tr>
    </tbody>
</table>

</body>
</html>